package book;

/**
 * @Author: Lenovo
 * @Date: 2024/5/24 17:01
 * @description:
 */
public class BookList {
    Book[]books=new Book[10];
    private int UseSize;
    public BookList(){
        this.books[0]=new Book("三国演义","罗贯中",9.9,"小说");
        this.books[1]=new Book("我与地坛","史铁生",23.9,"散文");
        this.books[2]=new Book("红楼梦","曹雪芹",9.9,"小说");
        this.UseSize=3;
    }
    public BookList(int useSize) {
        UseSize = useSize;
    }
    public Book getBook(int pos){
        return books[pos];
    }
    public void setBook(int pos,Book book){
        this.books[pos]=book;
    }

    public Book[] getBooks() {
        return books;
    }

    public void setBooks(Book[] books) {
        this.books = books;
    }

    public int getUseSize() {
        return UseSize;
    }

    public void setUseSize(int useSize) {
        UseSize = useSize;
    }
}
